<?php
/**
 +---------------------------------------<br/>
 * 会员<br/>
 +---------------------------------------
 * @category membership
 * @package 
 * @author skygreen skygreen2001@gmail.com
 */
class Member extends DataObject
{
    //<editor-fold defaultstate="collapsed" desc="定义部分">
    /**
     * 标识
     * @var int
     * @access public
     */
    public $member_id;
    /**
     * 用户名
     * @var string
     * @access public
     */
    public $username;
    /**
     * 密码
     * @var string
     * @access public
     */
    public $password;
    /**
     * 姓名
     * @var string
     * @access public
     */
    public $realname;
    /**
     * 手机
     * @var int
     * @access public
     */
    public $phone;
    /**
     * 卡号
     * @var string
     * @access public
     */
    public $code;
     /**
     * 商户号
     * @var int
     * @access public
     */
    public $sbs_id;
    /**
     * 微信
     * @var string
     * @access public
     */
    public $weixin;
    //</editor-fold>

    /**
     * 从属一对一关系
     */
    static $belong_has_one=array(
        "company"=>"Company",
        "department"=>"Department",
        "position"=>"Position",
        "area"=>"Area"
    );

    /**
     * 一对多关系
     */
    static $has_many=array(
        "lattachment"=>"Lattachment",
        "lcomment"=>"Lcomment",
        "lrating"=>"Lrating",
        "mlesson"=>"Mlesson",
        "chapterlog"=>"Chapterlog",
        "pointlog"=>"Pointlog",
        "practicelog"=>"Practicelog",
        "mlprogress"=>"Mlprogress",
        "mnotice"=>"Mnotice",
        "msubject"=>"Msubject",
        "mtest"=>"Mtest"
    );

}
?>